package com.zx.framework.plat.company.po;

import javax.persistence.Column;
import javax.persistence.Embeddable;


/**
 * CompanyExtId entity. @author MyEclipse Persistence Tools
 */
@Embeddable

public class CompanyExtId  implements java.io.Serializable {


    // Fields    

     private String companyId;
     private String projectId;
     private String name;


    // Constructors

    /** default constructor */
    public CompanyExtId() {
    }

    
    /** full constructor */
    public CompanyExtId(String companyId, String projectId, String name) {
        this.companyId = companyId;
        this.projectId = projectId;
        this.name = name;
    }

   
    // Property accessors

    @Column(name="COMPANYID", nullable=false, length=64)

    public String getCompanyId() {
        return this.companyId;
    }
    
    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    @Column(name="PROJECTID", nullable=false, length=64)

    public String getProjectId() {
        return this.projectId;
    }
    
    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    @Column(name="NAME", nullable=false, length=64)

    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof CompanyExtId) ) return false;
		 CompanyExtId castOther = ( CompanyExtId ) other; 
         
		 return ( (this.getCompanyId()==castOther.getCompanyId()) || ( this.getCompanyId()!=null && castOther.getCompanyId()!=null && this.getCompanyId().equals(castOther.getCompanyId()) ) )
 && ( (this.getProjectId()==castOther.getProjectId()) || ( this.getProjectId()!=null && castOther.getProjectId()!=null && this.getProjectId().equals(castOther.getProjectId()) ) )
 && ( (this.getName()==castOther.getName()) || ( this.getName()!=null && castOther.getName()!=null && this.getName().equals(castOther.getName()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getCompanyId() == null ? 0 : this.getCompanyId().hashCode() );
         result = 37 * result + ( getProjectId() == null ? 0 : this.getProjectId().hashCode() );
         result = 37 * result + ( getName() == null ? 0 : this.getName().hashCode() );
         return result;
   }   





}